<template>
  <div class="container">
    <!-- 顶部全局组件   -->
    <HospitalTop></HospitalTop>
    <!-- 展示路由组件的区域 -->
    <div class="content">
      <router-view></router-view>
    </div>
    <!-- 底部全局组件 -->
    <HospitalBottom></HospitalBottom>
    <!-- 登录组件  每一次展示对话框都是一个全新的-->
    <Login v-if="userStore.dialogFormVisible" ></Login>
  </div>
</template>

<script setup lang="ts">
// 引入用户仓库
import useUserStore from '@/store/modules/user'
// 创建仓库实例
let userStore = useUserStore();

// import request from '@/utils/request'
// import { onMounted } from 'vue';
// onMounted(() => {
//   request.get('/hosp/hospital/1/10').then((res) => {
//     console.log(res);
//   })
// })
</script>

<style scoped lang="scss">
.container {
  display: flex;
  flex-direction: column;
  align-items: center;

  .content {
    min-height: 800px;
    margin-top: 70px;
    width: 1200px;
  }
}
</style>